<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Reportes</title>
<link href="../css/bootstrap.css" rel="stylesheet">
<link href="../css/tablas.css" rel="stylesheet">
</head>

<body>
<div class="container">
<h3>Catalogo de camiones</h3>
    <hr />
	<table class="table table-striped">
  <tr>
  	<th>#</th>
  	<th>Marca</th>
	<th>Modelo</th>
	<th>Color</th>
	<th>Tipo</th>
	<th>Capacidad</th>
	<th>Precio</th>
  </tr>
			
<?php

	
		//print_r($_REQUEST);
		$conexion=mysql_connect("mysql.hostinger.mx","u129711089_mario","08330509mahb") or
  		die("Problemas en la conexion con la BDD");
		mysql_select_db("u129711089_gvc",$conexion) or
  		die("Problemas en la seleccion de la base de datos");
		$query = "SELECT * FROM camiones";
  		$result = mysql_query($query);
 	while($row = mysql_fetch_array($result))
  	{
    	echo "<tr><td><font face=\"verdana\">" . 
	    	$row[0] . "</font></td>";
    	echo "<td><font face=\"verdana\">" . 
	    	$row[1] . "</font></td>";
    	echo "<td><font face=\"verdana\">" . 
	    	$row[2] . "</font></td>";
		echo "<td><font face=\"verdana\">" . 
	    	$row[3] . "</font></td>";
    	echo "<td><font face=\"verdana\">" . 
	    	$row[4] . "</font></td>";
		echo "<td><font face=\"verdana\">" . 
	    	$row[5] . "</font></td>";
		echo "<td><font face=\"verdana\">" . 
	    	$row[6] . "</font></td>";
					
  	}	

  
  	mysql_free_result($result);
	mysql_close($conexion);		
?>    
</table>
</div>
</body>
</html>
